package com.ubox.mqtt_upush.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

@Entity
public class Phone {

	@Id
	private int id;

	private long user;

	private String password;

	private String name;
	@Transient
	private Integer smscode;
	@Transient
	private String type;

	private Date updateTime;

	private Date createTime;

	@Override
	public String toString() {
		return "Phone [id=" + id + ", user=" + user + ", password=" + password + ", name=" + name + ", updateTime="
				+ updateTime + ", createTime=" + createTime + "]";
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public long getUser() {
		return user;
	}

	public void setUser(long user) {
		this.user = user;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getSmscode() {
		return smscode;
	}

	public void setSmscode(Integer smscode) {
		this.smscode = smscode;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
